package com.arpa.oms.service.impl;


import cn.hutool.core.collection.IterUtil;
import com.arpa.ntocc.common.common.cache.PartyCache;
import com.arpa.ntocc.common.common.exception.ServiceException;
import com.arpa.ntocc.common.common.util.UserUtil;
import com.arpa.oms.domain.dto.OmsGoodsRelationRecordDTO;
import com.arpa.oms.domain.entity.OmsGoodsRelationRecord;
import com.arpa.oms.domain.vo.OmsGoodsRelationRecordVO;
import com.arpa.oms.mapper.OmsGoodsRelationRecordMapper;
import com.arpa.oms.service.IOmsGoodsRelationRecordService;
import com.arpa.wms.common.util.UUIDUtil;
import com.arpa.wms.domain.enums.StatusEnum;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author: rfwang
 * @Date 2021/8/12
 * @Description:
 */
@Service
public class OmsGoodsRelationRecordServiceImpl extends ServiceImpl<OmsGoodsRelationRecordMapper, OmsGoodsRelationRecord> implements IOmsGoodsRelationRecordService {

    /**
     * 查询列表
     *
     * @param omsGoodsRelationRecordDTO
     * @return
     */
    @Override
    public List<OmsGoodsRelationRecordVO> queryList(OmsGoodsRelationRecordDTO omsGoodsRelationRecordDTO) {
        List<OmsGoodsRelationRecordVO> customerVOList = baseMapper.queryList(omsGoodsRelationRecordDTO);
        return customerVOList;
    }

    /**
     * 查询合计,包含总数
     *
     * @param omsGoodsRelationRecordDTO
     * @return
     */
    @Override
    public OmsGoodsRelationRecordVO queryListSum(OmsGoodsRelationRecordDTO omsGoodsRelationRecordDTO) {
        OmsGoodsRelationRecordVO customerVO = baseMapper.queryListSum(omsGoodsRelationRecordDTO);
        return customerVO;
    }


}
